﻿<!DOCTYPE HTML>
<html>
	<head>
		<title>山西警察学院网络安全保卫系在线考试系统在线考试</title>
		<meta http-equiv="content-type" content="text/html;charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<script type="text/javascript" src="${request.contextPath}/statics/js/modules/test/jquery-1.8.3.js"></script>
		
		<script type="text/javascript" src="${request.contextPath}/statics/js/modules/test/Print.js"></script>
		
		<script type="text/javascript" src="${request.contextPath}/statics/js/modules/test/localstorage.min.js"></script>
		<script type="text/javascript" src="${request.contextPath}/statics/js/modules/test/jquery.utils.min.js"></script>
		<script type="text/javascript" src="${request.contextPath}/statics/js/modules/test/nicEdit.js"></script>
		<script type="text/javascript" src="${request.contextPath}/statics/js/modules/test/labelauty.js"></script>
		
		<link rel="stylesheet" type="text/css" href="${request.contextPath}/statics/css/test/main.css">
		<link rel="stylesheet" type="text/css" href="${request.contextPath}/statics/css/test/iconfont.css">
		<link rel="stylesheet" type="text/css" href="${request.contextPath}/statics/css/test/marking.css">
		<script type="text/javascript">

			var xsId = "" ;
			var totalScore = 0.0 ;//当前总分
			var pjrId = "" ;//评卷人id
			
			/**
			 * 读取考生答案并展示
			 */
			function showQuestion(){
				for(var i=0;i<single.quesNumber;i++){ //渲染单选题答案				
					var examAnswer = single.stAnswer[i];
					$("input[name=" + single.questionIDs[i] + "]").each(function(){
						if($(this).val()==examAnswer){
							$(this).attr("checked",true);
						}
					});
				}
				
				for(var i=0;i<multiple.quesNumber;i++){ //渲染多选题答案
					var examAnswer = multiple.stAnswer[i];

					var checkBoxArray = examAnswer.split(",");
					for(var j=0;j<checkBoxArray.length;j++){
						$("input[name='" + multiple.questionIDs[i] + "']").each(function(){
							if($(this).val()==checkBoxArray[j]){
								$(this).attr("checked","checked");								
							}
						});
					}			
				}
				
				for(var i=0;i<judgment.quesNumber;i++){ //渲染判断题答案
					var examAnswer = judgment.stAnswer[i];
					$("input[name=" + judgment.questionIDs[i] + "]").each(function(){
						if($(this).val()==examAnswer){
							$(this).attr("checked",true);
						}
					});
				}
				
				
				for(var i=0;i<fill.quesNumber;i++){ //渲染填空题答案
					var stAnswer = fill.stAnswer[i];
					var standardAnswer = fill.standardAnswer[i];
					
					if(stAnswer){
						var fillBlankArray = stAnswer.split(",");
						for(var j=0;j<fillBlankArray.length;j++){
							if(fillBlankArray[j]){
								$($("textarea[name='" + fill.questionIDs[i] + "']")[j]).val(fillBlankArray[j]);	//渲染本填空的学生答案
							}								
						}					
					}
					
					if(standardAnswer){
						var fillBlankArray = standardAnswer.split(",");
						for(var j=0;j<fillBlankArray.length;j++){
							if(fillBlankArray[j]){
								$($("textarea[name='" + fill.questionIDs[i] + "StandardAnswer']")[j]).val(fillBlankArray[j]);	//渲染本填空的标准答案
							}								
						}					
					}

				}
				
				for(var i=0;i<modify.quesNumber;i++){ //渲染改错题答案-和大题一个套路
					var examAnswer = modify.stAnswer[i];				
					$("textarea[name='" + modify.questionIDs[i] + "']").val(examAnswer);	//渲染改错题的答案
					//$("textarea[name='standard" + modify.questionIDs[i] + "']").val(modify.standardAnswer[i]);	//渲染改错题的标准答案
				}
				
				for(var i=0;i<discussion.quesNumber;i++){ //渲染论述题答案
					var examAnswer = discussion.stAnswer[i];				
					$("textarea[name='" + discussion.questionIDs[i] + "']").val(examAnswer);	//渲染论述题的答案
					//$("textarea[name='standard" + discussion.questionIDs[i] + "']").val(discussion.standardAnswer[i]);	//渲染论述题的标准答案
				}
				
				for(var i=0;i<synthesis.quesNumber;i++){ //渲染综合应用题答案
					var examAnswer = synthesis.stAnswer[i];				
					$("textarea[name='" + synthesis.questionIDs[i] + "']").val(examAnswer);		//渲染综合应用题的答案
					//$("textarea[name='standard" + synthesis.questionIDs[i] + "']").val(synthesis.standardAnswer[i]);		//渲染综合应用题的标准答案
				}
				
			}
			
			
			/**
			 * 打印
			 */
			function printClick(){
				$(".test_title").attr("style","display:none;");
				$("#test").attr("style","width:99.5%;");

				Print('#test');
				$(".test_title").attr("style","display:;");
				$("#test").attr("style","width:100%;");
			}
		
		
		//var examContent ;//试卷实体-整张试卷
		var single,multiple,judgment,fill,modify,discussion,synthesis ;//分别对应六大题型-单选题，多选题，判断题，填空题，改错题，论述题，综合应用题
		single = {
			quesNumber: 0,//单选题问题数量
			questionIDs: [],//题目id
			fs: [],//本题分数
			thisFs:[],//评卷分数
			answerListId:[],//评卷分数对应的id，提交评卷用
			totalFs: 0,//题型总分
			titles:[],//问题主干
			questions: [],//问题题干
			stOptions:[],//学生的答题项
			stAnswer:[],//学生的答案转换
			standardAnswer:[],//该题的标准答案
			options: [],//问题选项
			paper:"",//试卷dom
			answer:""//答题卡dom
		}		
		
		multiple = {
			quesNumber: 0,//多选题问题数量
			questionIDs: [],//题目id
			fs: [],//本题分数
			thisFs:[],//评卷分数
			answerListId:[],//评卷分数对应的id，提交评卷用
			totalFs: 0,//题型总分
			titles:[],//问题主干
			questions: [],//问题题干
			stOptions:[],//学生的答题项
			stAnswer:[],//学生的答案转换
			standardAnswer:[],//该题的标准答案
			options: [],//问题选项
			paper:"",//试卷dom
			answer:""//答题卡dom
		}
		
		judgment = {
			quesNumber: 0,//判断题问题数量
			questionIDs: [],//题目id
			fs: [],//本题分数
			thisFs:[],//评卷分数
			answerListId:[],//评卷分数对应的id，提交评卷用
			totalFs: 0,//题型总分
			questions: [],//问题题干
			titles:[],//问题主干
			stOptions:[],//学生的答题项
			stAnswer:[],//学生的答案转换
			standardAnswer:[],//该题的标准答案
			options: [],//问题选项
			paper:"",//试卷dom
			answer:""//答题卡dom				
		}
		
		fill = {
			quesNumber: 0,//填空题问题数量
			questionIDs: [],//题目id
			fs: [],//本题分数
			thisFs:[],//评卷分数
			scoreDetail:[],//评卷分数明细到每个空,从数据库里获取的结果[0：1,2,3,4 ][1：3,5,7,9 ]
			thisFsDetail:[],//评卷分数明细到每个空（填空题特有），二维数组，在渲染的时候进行初始化
			answerListId:[],//评卷分数对应的id，提交评卷用
			totalFs: 0,//题型总分
			titles:[],//问题主干
			questions: [],//问题题干
			stOptions:[],//学生的答题项
			stAnswer:[],//学生的答案转换
			standardAnswer:[],//该题的标准答案
			options: [],//存储输入的结果
			paper:"",//试卷dom
			answer:""//答题卡dom					
		}
		
		modify = {
			quesNumber: 0,//改错题问题数量
			questionIDs: [],//题目id
			fs: [],//本题分数
			thisFs:[],//评卷分数
			answerListId:[],//评卷分数对应的id，提交评卷用
			totalFs: 0,//题型总分
			titles:[],//问题主干
			questions: [],//问题题干
			stOptions:[],//学生的答题项
			stAnswer:[],//学生的答案转换
			standardAnswer:[],//该题的标准答案
			options: [],//存储输入的结果
			paper:"",//试卷dom
			answer:""//答题卡dom					
		}
		
		discussion = {
			quesNumber: 0,//解答题问题数量
			questionIDs: [],//题目id
			fs: [],//本题分数
			thisFs:[],//评卷分数
			answerListId:[],//评卷分数对应的id，提交评卷用
			totalFs: 0,//题型总分
			titles:[],//问题主干
			questions: [],//问题题干
			stOptions:[],//学生的答题项
			stAnswer:[],//学生的答案转换
			standardAnswer:[],//该题的标准答案
			options: [],//存储输入的结果
			paper:"",//试卷dom
			answer:""//答题卡dom					
		}
		
		synthesis = {
			quesNumber: 0,//综合应用题问题数量
			questionIDs: [],//题目id
			fs: [],//本题分数
			thisFs:[],//评卷分数
			answerListId:[],//评卷分数对应的id，提交评卷用
			totalFs: 0,//题型总分
			titles:[],//问题主干
			questions: [],//问题题干
			stOptions:[],//学生的答题项
			stAnswer:[],//学生的答案转换
			standardAnswer:[],//该题的标准答案
			options: [],//存储输入的结果
			paper:"",//试卷dom
			answer:""//答题卡dom					
		}
		
		
		$(function(){
			
 			$.ajax({
		        type: "POST",
		        url: "/sys/user/info",
		        dataType: "json",
		        success: function (result) {
		        	if(result.code == 0	){
		        		pjrId = result.user.userId ;
		        	}else{
		        		alert("获取用户信息失败，请联系管理员");
		        	}
		        }
		    }); 
 			
			
			String.prototype.getParameter = function (key) {  
				var re = new RegExp(key + '=([^&]*)(?:&)?');  
				return this.match(re) && this.match(re)[1];  
			}; 
			var s = location.href;

			xsId = s.getParameter("xsId");
			console.log("xsIdxsId:"+xsId);

			//xsId = 'd376d885d0074e10a32fa78d2576cb37' ;//调试用例
			
			//xsId = 'c501fbe570434eda9358eec8284ce25f' ;//调试用例2
			$.ajax({
				type: "POST",
			    url: "/jysjxssublist/queryAnswer/"+xsId,
			    contentType: "application/json",
			    success: function(result){
					console.log(result);
					if(result.code == 0){
					
						if(result.list.sj){
							var htmlTitle = result.list.sj ;
							if(result.list.xm){
								htmlTitle = htmlTitle + "-" ;
								htmlTitle = htmlTitle + result.list.deptName ;
								htmlTitle = htmlTitle + ":" ;
								htmlTitle += result.list.xm ;
							}
						
							$("#testName").html(htmlTitle);
						}
						
						
						if(result.list.list.length){
							$(result.list.list).each(function(){
								console.log($(this));
								if($(this)[0].type=="1"){//单选题的类型为1
									single.type = 1;
									single.quesNumber++ ;
									single.questionIDs.push($(this)[0].id);
									single.fs.push($(this)[0].titleValue);

									if($(this)[0].answerList.length){//考生作答了，产生了answerList
										single.answerListId.push($(this)[0].answerList[0].id);		
										//追加学生给的答案和标准答案
										var thisStOptionId = $(this)[0].answerList[0].stOptionId ;//学生给的答案
										single.thisFs.push($(this)[0].answerList[0].score);
									}else{//考生没有作答
										single.answerListId.push(null);	
										var thisStOptionId = null ;//学生给的答案
										single.thisFs.push(0);//不作答0分
									}

									var isStAnswerd = false ;//学生作答有对应的答案id
									$($(this)[0].optionList).each(function(){
										if($(this)[0].id == thisStOptionId ){//存储学生答案
											single.stAnswer.push($(this)[0].optionName);
											isStAnswerd = true ;
										}
										if($(this)[0].isStandard == 1 ){//存储标准答案
											single.standardAnswer.push($(this)[0].optionName);
										}
									})
									if(!isStAnswerd){//没有作答则置空
										single.stAnswer.push("");
									}										

									single.totalFs += $(this)[0].titleValue ;
									single.titles.push( $(this)[0].title );
									try{
										single.questions.push( decodeURI($(this)[0].sjDescribe) );
									}catch(err){
										console.log("single["+$(this)[0].id+"]的question解码异常");
										single.questions.push( $(this)[0].sjDescribe );
									}
									single.options.push($(this)[0].optionList);

									
								}else if($(this)[0].type=="2"){//多选题的类型为2
									multiple.type = 2;
									multiple.quesNumber++ ;
									multiple.questionIDs.push($(this)[0].id);
									multiple.fs.push($(this)[0].titleValue);

									if($(this)[0].answerList.length){//考生作答了，产生了answerList
										multiple.answerListId.push($(this)[0].answerList[0].id);	
										//追加学生给的答案和标准答案
										var thisStOptionId = $(this)[0].answerList[0].stOptionId ;	
										multiple.thisFs.push($(this)[0].answerList[0].score);										
									}else{//考生没有作答
										multiple.answerListId.push(null);	
										var thisStOptionId = null ;
										multiple.thisFs.push(0);		
									}

									multiple.totalFs += $(this)[0].titleValue ;
									multiple.titles.push( $(this)[0].title );
									try{
										multiple.questions.push( decodeURI($(this)[0].sjDescribe) );
									}catch(err){
										console.log("multiple["+$(this)[0].id+"]的question解码异常");
										multiple.questions.push( $(this)[0].sjDescribe );
									}
									multiple.options.push($(this)[0].optionList);
									
									//追加学生给的答案和标准答案
									multiple.stOptions.push( thisStOptionId );
									var isStAnswerd = false ;//学生作答有对应的答案id
									var multipleStAnswer = "";
									var multipleStandardAnswer = "";
									$($(this)[0].optionList).each(function(){
										var that = $(this);
										if(thisStOptionId){
											var thisStOptionIds = thisStOptionId.split(",") ; 
											for(var i = 0 ; i < thisStOptionIds.length ; ++i ){
												if(that[0].id == thisStOptionIds[i] ){//存储学生答案
													multipleStAnswer += (that[0].optionName + ',' );
													isStAnswerd = true ;
												}
											}										
										}

										if($(this)[0].isStandard == 1  ){//存储标准答案
											multipleStandardAnswer += ($(this)[0].optionName + ',' );
										}
									})
									
									if(isStAnswerd){//作答则删除末尾的“，”
										multipleStAnswer = multipleStAnswer.substring(0,multipleStAnswer.length-1);
									}
									multipleStandardAnswer = multipleStandardAnswer.substring(0,multipleStandardAnswer.length-1);
									
									multiple.stAnswer.push(multipleStAnswer);
									multiple.standardAnswer.push(multipleStandardAnswer);

								}else if($(this)[0].type=="4"){//判断题的类型为4
									judgment.type = 4;
									judgment.quesNumber++ ;
									judgment.questionIDs.push($(this)[0].id);
									judgment.fs.push($(this)[0].titleValue);

									if($(this)[0].answerList.length){//考生作答了，产生了answerList
										judgment.answerListId.push($(this)[0].answerList[0].id);		
										//追加学生给的答案和标准答案
										var thisStOptionId = $(this)[0].answerList[0].stOptionId ;//学生给的答案
										judgment.thisFs.push($(this)[0].answerList[0].score);	
									}else{//考生没有作答
										judgment.answerListId.push(null);	
										var thisStOptionId = null ;//学生给的答案
										judgment.thisFs.push(0);	
									}

									var isStAnswerd = false ;//学生作答有对应的答案id
									$($(this)[0].optionList).each(function(){
										if($(this)[0].id == thisStOptionId ){//存储学生答案
											judgment.stAnswer.push($(this)[0].optionName);
											isStAnswerd = true ;
										}
										if($(this)[0].isStandard == 1 ){//存储标准答案
											judgment.standardAnswer.push($(this)[0].optionName);
										}
									})
									if(!isStAnswerd){//没有作答则置空
										judgment.stAnswer.push("");
									}										

									judgment.totalFs += $(this)[0].titleValue ;
									judgment.titles.push( $(this)[0].title );
									try{
										judgment.questions.push( decodeURI($(this)[0].sjDescribe) );
									}catch(err){
										console.log("judgment["+$(this)[0].id+"]的question解码异常");
										judgment.questions.push( $(this)[0].sjDescribe );
									}
									judgment.options.push($(this)[0].optionList);

									
								}else if($(this)[0].type=="3"){//填空题的类型为3
									fill.type = 3;
									fill.quesNumber++ ;
									fill.questionIDs.push($(this)[0].id);
									fill.fs.push($(this)[0].titleValue);

									if($(this)[0].answerList.length){//考生作答了，产生了answerList
										fill.answerListId.push($(this)[0].answerList[0].id);	
										fill.stAnswer.push( unescape($(this)[0].answerList[0].stText) );	
										fill.thisFs.push($(this)[0].answerList[0].score);	
										fill.scoreDetail.push($(this)[0].answerList[0].scoreDetail);
									}else{//考生没有作答
										fill.answerListId.push(null);	
										fill.stAnswer.push("");
										fill.thisFs.push(0);
										fill.scoreDetail.push(null);
									}
									fill.totalFs += $(this)[0].titleValue ;
									fill.titles.push( $(this)[0].title );
									try{
										
										fill.questions.push( decodeURI($(this)[0].sjDescribe) );
									}catch(err){
										console.log("fill["+$(this)[0].id+"]的question解码异常");
										
										fill.questions.push( $(this)[0].sjDescribe );
									}
									fill.options.push($(this)[0].optionList);
									
									//追加学生给的答案和标准答案								
									//fill.stAnswer.push( $(this)[0].answerList[0].stText );
									//fill.standardAnswer.push($(this)[0].standardAnswer);
									
									var thisStandardAnswer ="";
									if($(this)[0].optionList.length){
										for(var j = 0 ; j < $(this)[0].optionList.length ; ++j){
											thisStandardAnswer +=  $(this)[0].optionList[j].optionKey ;
											thisStandardAnswer += ","
										}
										thisStandardAnswer = thisStandardAnswer.substring(0,thisStandardAnswer.length-1);		
									}
									fill.standardAnswer.push(thisStandardAnswer);
									

								}else if($(this)[0].type=="6"){//改错题的类型为6
									modify.type = 6;
									modify.quesNumber++ ;
									modify.questionIDs.push($(this)[0].id);
									modify.fs.push($(this)[0].titleValue);

									if($(this)[0].answerList.length){//考生作答了，产生了answerList
										modify.answerListId.push($(this)[0].answerList[0].id);	
										modify.stAnswer.push( unescape($(this)[0].answerList[0].stText) );	
										modify.thisFs.push($(this)[0].answerList[0].score);		
									}else{//考生没有作答
										modify.answerListId.push(null);	
										modify.stAnswer.push("");
										modify.thisFs.push(0);
									}

									modify.totalFs += $(this)[0].titleValue ;
									modify.titles.push( $(this)[0].title );
									try{
										
										modify.questions.push( decodeURI($(this)[0].sjDescribe) );
									}catch(err){
										console.log("modify["+$(this)[0].id+"]的question解码异常");
										
										modify.questions.push( $(this)[0].sjDescribe );
									}
									modify.options.push($(this)[0].optionList);
									//追加标准答案								
									modify.standardAnswer.push( decodeURI($(this)[0].optionList[0].optionKey) );
								}else if($(this)[0].type=="5"){//解答题的类型为5
									discussion.type = 5;
									discussion.quesNumber++ ;
									discussion.questionIDs.push($(this)[0].id);
									discussion.fs.push($(this)[0].titleValue);

									if($(this)[0].answerList.length){//考生作答了，产生了answerList
										discussion.answerListId.push($(this)[0].answerList[0].id);	
										discussion.stAnswer.push( unescape($(this)[0].answerList[0].stText) );	
										discussion.thisFs.push($(this)[0].answerList[0].score);
									}else{//考生没有作答
										discussion.answerListId.push(null);	
										discussion.stAnswer.push("");
										discussion.thisFs.push(0);
									}
									
									discussion.totalFs += $(this)[0].titleValue ;
									discussion.titles.push( $(this)[0].title );
									try{
										
										discussion.questions.push( decodeURI($(this)[0].sjDescribe) );
									}catch(err){
										console.log("discussion["+$(this)[0].id+"]的question解码异常");
										
										discussion.questions.push( $(this)[0].sjDescribe );
									}
									discussion.options.push($(this)[0].optionList);
									//追加标准答案								
									discussion.standardAnswer.push($(this)[0].optionList[0].optionKey);
								}else if($(this)[0].type=="7"){//综合应用题的类型为7
									synthesis.type = 7;
									synthesis.quesNumber++ ;
									synthesis.questionIDs.push($(this)[0].id);
									synthesis.fs.push($(this)[0].titleValue);

									if($(this)[0].answerList.length){//考生作答了，产生了answerList
										synthesis.answerListId.push($(this)[0].answerList[0].id);	
										synthesis.stAnswer.push( unescape($(this)[0].answerList[0].stText) );		
										synthesis.thisFs.push($(this)[0].answerList[0].score);
									}else{//考生没有作答
										synthesis.answerListId.push(null);	
										synthesis.stAnswer.push("");
										synthesis.thisFs.push(0);
									}
									
									synthesis.totalFs += $(this)[0].titleValue ;
									synthesis.titles.push( $(this)[0].title );
									try{
										
										synthesis.questions.push( decodeURI($(this)[0].sjDescribe) );
									}catch(err){
										console.log("synthesis["+$(this)[0].id+"]的question解码异常");
										
										synthesis.questions.push( $(this)[0].sjDescribe );
									}
									synthesis.options.push($(this)[0].optionList);
									
									//追加标准答案								
									synthesis.standardAnswer.push($(this)[0].optionList[0].optionKey);
								}
							});							
						}else{
							console.log("试题获取异常，未检测到试题");
							alert("评卷未开始");
							window.history.go(-1);
						}

						console.log(single);
						console.log(multiple);
						console.log(judgment);
						console.log(fill);
						console.log(modify);
						console.log(discussion);
						console.log(synthesis);
						
						if(single.quesNumber){//渲染单选题
							single.paper = single.paper
								+'<div class="test_content">'
								+'	<div class="test_content_title">'
								+'		<h2>单选题</h2>'
								+'		<p>'
								+'			<span>共</span><i class="content_lit">'+single.quesNumber+'</i><span>题，</span><span>合计</span><i class="content_fs">'+single.totalFs+'</i><span>分</span>'
								+'		</p>'
								+'	</div>'
								+'</div>'
								+'<div class="test_content_nr">'
								+'	<ul>'								
							;	
							
							single.answer = single.answer
								+'<div class="rt_content open">'<!-- 初始化第一个rt_content为open，用于默认开始显示 -->
								+'	<div class="rt_content_tt link">'
								+'		<h2>单选题</h2>'
								+'		<p>'
								+'			<span>共</span><i class="content_lit">'+single.quesNumber+'</i><span>题</span>'
								+'		</p>'
								+'	</div>'
								+'	<ul class="submenu answerSheet" style="display:block;">'<!-- 初始化第一个submenu的样式block，用于默认开始显示 -->
							;	
							

							
							for( var i = 0 ; i < single.quesNumber ; ++i ){
								var thisScore = 0 ;//本题得分
								var isAnswerEqualStandardAnswer = "unchecked";//学生答案是否与标准答案完全一致，是存checked，否存unchecked
								var theOtherHand = "checked";//上面变量的反值
								if (single.stAnswer[i] == single.standardAnswer[i]){
									isAnswerEqualStandardAnswer = "checked";
									theOtherHand = "unchecked";
									thisScore = single.fs[i] ;
									totalScore += thisScore ;
								}
								//single.thisFs[i] = thisScore ;
								
								
								single.paper = single.paper 
									+'<li id="qu_'+single.type+'_'+i+'">'
									+'	<div class="test_content_nr_tt">'
									+'		<i>'+(i+1)+'</i><span>('+single.fs[i]+'分)</span>'
									+'		<font>'+single.titles[i]+'</font>'
									
									+'		<div class="scoreFill">'							
									+'			<input type="text" id="scoreFill_'+single.type+'_'+i+'" class="scoreInput" value="'+single.thisFs[i]+'"  readonly/>'
									+'			<input type="button"  class="scoreButton" value="分"/>'
									+'		</div>'											
									+'		<input type="radio" name="rdo_'+single.type+'_'+i+'" class=" rdolist rdolist_'+single.type+'_'+i+'" checked="'+theOtherHand+'"/>'
									+'		<label class="'+theOtherHand+' rdobox_'+single.type+'_'+i+'" >'
									+'			<b class="icon iconfont incorrect radiobox-content">&#xe69c;</b>'
									+'		</label>'											
									+'		<input type="radio" name="rdo_'+single.type+'_'+i+'" class=" rdolist rdolist_'+single.type+'_'+i+'" checked="'+isAnswerEqualStandardAnswer+'" />'
									+'		<label class="'+isAnswerEqualStandardAnswer+' rdobox_'+single.type+'_'+i+'"  >'
									+'			<b class="icon iconfont correct radiobox-content">&#xe69d;</b>'
									+'		</label>'

									+'		<textarea id="nicEditorQuestion_'+single.type+'_'+i+'" style="width: 100%;" >'+single.questions[i]+'</textarea>'
									
									+'	</div>'																																
									+'	<div class="test_content_nr_main">'
									+'		<ul>'	
								;
								for( var j = 0 ; j < single.options[i].length ; ++j ){
									single.paper = single.paper 
										+'			<li class="option">'	
										+'				<input type="radio" class="radioOrCheck single"  name="'+single.questionIDs[i]+'" disabled '
										+'					id="'+single.type+'_answer_'+i+'_option_'+j+'" value="'+single.options[i][j].optionName+'" optionid="'+single.options[i][j].id+'" '
										+'				/>'		
										+'				<label for="'+single.type+'_answer_'+i+'_option_'+j+'">'
										+'					'+single.options[i][j].optionName+'.'
										+'					<p class="ue" style="display: inline;">'+single.options[i][j].optionKey+'</p>'
										+'				</label>'
										+'			</li>'	
									;
								}	
								single.paper = single.paper 	
									+'		</ul>'
									+'		<div class="standardAnswer">'
									+'			标准答案：' + single.standardAnswer[i]
									+'		</div>'
									+'	</div>'	 	
									+'</li>'
								;	
									
								single.answer = single.answer	
									+'<li><a href="#qu_'+single.type+'_'+i+'">'+(i+1)+'</a></li>'
								;
							} 
							
							single.paper = single.paper 
								+'	</ul>'
								+'</div>'
							;
								
							single.answer = single.answer		
								+'	</ul>'
								+'</div>'	
							;
							
							$("#paper").append(single.paper);
							
							$("#accordion").append(single.answer);
						}
						
						
						if(multiple.quesNumber){//渲染多选题
							multiple.paper = multiple.paper
								+'<div class="test_content">'
								+'	<div class="test_content_title">'
								+'		<h2>多选题</h2>'
								+'		<p>'
								+'			<span>共</span><i class="content_lit">'+multiple.quesNumber+'</i><span>题，</span><span>合计</span><i class="content_fs">'+multiple.totalFs+'</i><span>分</span>'
								+'		</p>'
								+'	</div>'
								+'</div>'
								+'<div class="test_content_nr">'
								+'	<ul>'								
							;	
							
							multiple.answer = multiple.answer
								+'<div class="rt_content">'
								+'	<div class="rt_content_tt link">'
								+'		<h2>多选题</h2>'
								+'		<p>'
								+'			<span>共</span><i class="content_lit">'+multiple.quesNumber+'</i><span>题</span>'
								+'		</p>'
								+'	</div>'
								+'	<ul class="submenu answerSheet" style="display:;">'
							;	
							

							
							for( var i = 0 ; i < multiple.quesNumber ; ++i ){	
								var thisScore = 0 ;//本题得分							
								var isAnswerEqualStandardAnswer = "unchecked";//学生答案是否与标准答案完全一致，是存checked，否存unchecked
								var theOtherHand = "checked";//上面变量的反值
								if (multiple.stAnswer[i] == multiple.standardAnswer[i]){//完全一致的情况
									isAnswerEqualStandardAnswer = "checked";
									theOtherHand = "unchecked";
									thisScore = multiple.fs[i] ;
									totalScore += thisScore ;
								}
								

								
								multiple.paper = multiple.paper 
									+'<li id="qu_'+multiple.type+'_'+i+'">'
									+'	<div class="test_content_nr_tt">'
									+'	<i>'+(i+1)+'</i><span>('+multiple.fs[i]+'分)</span>'
									+'		<font>'+multiple.titles[i]+'</font>'
									+'		<div class="scoreFill">'
									+'			<input id="scoreFill_'+multiple.type+'_'+i+'"  class="scoreInput"  onchange="scoreFillChange(this);"   value="'+multiple.thisFs[i]+'"   type="number" oninput="if(value.length>4)value=value.slice(0,4)"  readonly />'
									+'			<input type="button"  class="scoreButton" value="分"/>'
									+'		</div>'	
									
									+'		<input type="radio" name="rdo_'+multiple.type+'_'+i+'" class=" rdolist rdolist_'+multiple.type+'_'+i+'" checked="'+theOtherHand+'"/>'
									+'		<label class="'+theOtherHand+' rdobox_'+multiple.type+'_'+i+'" >'
									+'			<b class="icon iconfont incorrect radiobox-content">&#xe69c;</b>'
									+'		</label>'											
									+'		<input type="radio" name="rdo_'+multiple.type+'_'+i+'" class=" rdolist rdolist_'+multiple.type+'_'+i+'" checked="'+isAnswerEqualStandardAnswer+'" />'
									+'		<label class="'+isAnswerEqualStandardAnswer+' rdobox_'+multiple.type+'_'+i+'"  >'
									+'			<b class="icon iconfont correct radiobox-content">&#xe69d;</b>'
									+'		</label>'
									
									+'		<textarea  id="nicEditorQuestion_'+multiple.type+'_'+i+'"  style="width: 100%;"  >'+multiple.questions[i]+'</textarea>'
									+'	</div>'								
																								
										+'	<div class="test_content_nr_main">'
									+'		<ul>'	
								;
								for( var j = 0 ; j < multiple.options[i].length ; ++j ){
									multiple.paper = multiple.paper 
										+'			<li class="option">'	
										+'				<input type="checkbox" class="radioOrCheck multiple"  name="'+multiple.questionIDs[i]+'" disabled'
										+'					id="'+multiple.type+'_answer_'+i+'_option_'+j+'" value="'+multiple.options[i][j].optionName+'"  optionid="'+multiple.options[i][j].id+'"  '
										+'				/>'		
										+'				<label for="'+multiple.type+'_answer_'+i+'_option_'+j+'">'
										+'					'+multiple.options[i][j].optionName+'.'
										+'					<p class="ue" style="display: inline;">'+multiple.options[i][j].optionKey+'</p>'
										+'				</label>'
										+'			</li>'	
									;
								}	
								multiple.paper = multiple.paper 	
									+'		</ul>'
									+'		<div class="standardAnswer">'
									+'			标准答案：' + multiple.standardAnswer[i]
									+'		</div>'									
									+'	</div>'	 	
									+'</li>'
								;	
									
								multiple.answer = multiple.answer	
									+'<li><a href="#qu_'+multiple.type+'_'+i+'">'+(i+1)+'</a></li>'
								;
							} 
							
							multiple.paper = multiple.paper 
								+'	</ul>'
								+'</div>'
							;
								
							multiple.answer = multiple.answer		
								+'	</ul>'
								+'</div>'	
							;
							
							$("#paper").append(multiple.paper);
							
							$("#accordion").append(multiple.answer);
						}
						
						if(judgment.quesNumber){//渲染判断题
							judgment.paper = judgment.paper
								+'<div class="test_content">'
								+'	<div class="test_content_title">'
								+'		<h2>判断题</h2>'
								+'		<p>'
								+'			<span>共</span><i class="content_lit">'+judgment.quesNumber+'</i><span>题，</span><span>合计</span><i class="content_fs">'+judgment.totalFs+'</i><span>分</span>'
								+'		</p>'
								+'	</div>'
								+'</div>'
								+'<div class="test_content_nr">'
								+'	<ul>'								
							;	
							
							judgment.answer = judgment.answer
								+'<div class="rt_content">'
								+'	<div class="rt_content_tt link">'
								+'		<h2>判断题</h2>'
								+'		<p>'
								+'			<span>共</span><i class="content_lit">'+judgment.quesNumber+'</i><span>题</span>'
								+'		</p>'
								+'	</div>'
								+'	<ul class="submenu answerSheet" style="display:;">'
							;	
						
							
							for( var i = 0 ; i < judgment.quesNumber ; ++i ){
								var thisScore = 0 ;//本题得分
								var isAnswerEqualStandardAnswer = "unchecked";//学生答案是否与标准答案完全一致，是存checked，否存unchecked
								var theOtherHand = "checked";//上面变量的反值
								if (judgment.stAnswer[i] == judgment.standardAnswer[i]){
									isAnswerEqualStandardAnswer = "checked";
									theOtherHand = "unchecked";
									thisScore = judgment.fs[i] ;
									totalScore += thisScore ;
								}
								//judgment.thisFs[i] = thisScore ;

								judgment.paper = judgment.paper 
									+'<li id="qu_'+judgment.type+'_'+i+'">'
									+'	<div class="test_content_nr_tt">'
									+'		<i>'+(i+1)+'</i><span>('+judgment.fs[i]+'分)</span>'
									+'		<font>'+judgment.titles[i]+'</font>'
									
									+'		<div class="scoreFill">'
									+'			<input type="text"  id="scoreFill_'+judgment.type+'_'+i+'"  class="scoreInput"  value="'+judgment.thisFs[i]+'" readonly />'
									+'			<input type="button"  class="scoreButton" value="分"/>'
									+'		</div>'
									+'		<input type="radio" name="rdo_'+judgment.type+'_'+i+'" class=" rdolist rdolist_'+judgment.type+'_'+i+'" checked="'+theOtherHand+'"/>'
									+'		<label class="'+theOtherHand+' rdobox_'+judgment.type+'_'+i+'" >'
									+'			<b class="icon iconfont incorrect radiobox-content">&#xe69c;</b>'
									+'		</label>'											
									+'		<input type="radio" name="rdo_'+judgment.type+'_'+i+'" class=" rdolist rdolist_'+judgment.type+'_'+i+'" checked="'+isAnswerEqualStandardAnswer+'" />'
									+'		<label class="'+isAnswerEqualStandardAnswer+' rdobox_'+judgment.type+'_'+i+'"  >'
									+'			<b class="icon iconfont correct radiobox-content">&#xe69d;</b>'
									+'		</label>'
									
									+'		<textarea  id="nicEditorQuestion_'+judgment.type+'_'+i+'"  style="width: 100%;" >'+judgment.questions[i]+'</textarea>'
									+'	</div>'								
																								
										+'	<div class="test_content_nr_main">'
									+'		<ul>'	
								;
								for( var j = 0 ; j < judgment.options[i].length ; ++j ){
									judgment.paper = judgment.paper 
										+'			<li class="option">'	
										+'				<input type="radio" class="radioOrCheck judgment"  name="'+judgment.questionIDs[i]+'" disabled'
										+'					id="'+judgment.type+'_answer_'+i+'_option_'+j+'" value="'+judgment.options[i][j].optionName+'"  optionid="'+judgment.options[i][j].id+'"  '
										+'				/>'		
										+'				<label for="'+judgment.type+'_answer_'+i+'_option_'+j+'">'
										+'					'+judgment.options[i][j].optionName+'.'
										+'					<p class="ue" style="display: inline;">'+judgment.options[i][j].optionKey+'</p>'
										+'				</label>'
										+'			</li>'	
									;
								}	
								judgment.paper = judgment.paper 	
									+'		</ul>'
									+'		<div class="standardAnswer">'
									+'			标准答案：' + judgment.standardAnswer[i]
									+'		</div>'	
									+'	</div>'	 	
									+'</li>'
								;	
									
								judgment.answer = judgment.answer	
									+'<li><a href="#qu_'+judgment.type+'_'+i+'">'+(i+1)+'</a></li>'
								;
							} 
							
							judgment.paper = judgment.paper 
								+'	</ul>'
								+'</div>'
							;
								
							judgment.answer = judgment.answer		
								+'	</ul>'
								+'</div>'	
							;
							
							$("#paper").append(judgment.paper);
							
							$("#accordion").append(judgment.answer);
						}						
						
						
						
						if(fill.quesNumber){//渲染填空题
							fill.paper = fill.paper
								+'<div class="test_content">'
								+'	<div class="test_content_title">'
								+'		<h2>填空题</h2>'
								+'		<p>'
								+'			<span>共</span><i class="content_lit">'+fill.quesNumber+'</i><span>题，</span><span>合计</span><i class="content_fs">'+fill.totalFs+'</i><span>分</span>'
								+'		</p>'
								+'	</div>'
								+'</div>'
								+'<div class="test_content_nr">'
								+'	<ul>'								
							;	
							
							fill.answer = fill.answer
								+'<div class="rt_content">'
								+'	<div class="rt_content_tt link">'
								+'		<h2>填空题</h2>'
								+'		<p>'
								+'			<span>共</span><i class="content_lit">'+fill.quesNumber+'</i><span>题</span>'
								+'		</p>'
								+'	</div>'
								+'	<ul class="submenu answerSheet" style="display:;">'
							;	
							
							for( var i = 0 ; i < fill.quesNumber ; ++i ){//这是新格式的敷衍做法，MLGB

								fill.paper = fill.paper 
									+'<li id="qu_'+fill.type+'_'+i+'">'
									+'	<div class="test_content_nr_tt">'
									+'		<i>'+(i+1)+'</i><span>('+fill.fs[i]+'分)</span>'
									+'		<font>'+fill.titles[i]+'</font>'
									//+'		<div class="scoreFill">'
									//+'			<input  id="scoreFill_'+fill.type+'_'+i+'"  class="scoreInputFillSpecial" readonly   value="0"   type="number"   />'
									//+'			<input type="button"  class="scoreButton" value="分"/>'
									//+'		</div>'									
									//+'		<input type="radio" name="rdo_'+fill.type+'_'+i+'" class=" rdolist rdolist_'+fill.type+'_'+i+'" checked="unchecked"/>'
									//+'		<label class="rdobox_'+fill.type+'_'+i+' unchecked" >'
									//+'			<b class="icon iconfont incorrect radiobox-content">&#xe69c;</b>'
									//+'		</label>'											
									//+'		<input type="radio" name="rdo_'+fill.type+'_'+i+'" class=" rdolist rdolist_'+fill.type+'_'+i+'" checked="unchecked" />'
									//+'		<label class="rdobox_'+fill.type+'_'+i+' unchecked"  >'
									//+'			<b class="icon iconfont correct radiobox-content">&#xe69d;</b>'
									//+'		</label>'
									
									+'		<textarea  id="nicEditorQuestion_'+fill.type+'_'+i+'"  style="width: 100%;" >'+fill.questions[i]+'</textarea>'
									+'	</div>'
									+'	<div class="test_content_nr_main">'
								;
								
								fill.thisFsDetail[i] = new Array();
								for( var j = 0 ; j < fill.options[i].length  ; ++j ){
												
									var isGetScore  = "unchecked" ;//主观题通用-是否得分,得分存"checked"
									var theOtherHand = "checked";//上面变量的反值
									if(fill.scoreDetail[i]){//如果本题学生作答了，有scoreDetail
										fill.thisFsDetail[i][j] = fill.scoreDetail[i].split(",")[j];
										if(fill.thisFsDetail[i][j] != 0){
											isGetScore = "checked" ;
											theOtherHand = "unchecked" ;
										}
									}else{//否则一律判0分
										fill.thisFsDetail[i][j] = 0 ;
									}

									fill.paper = fill.paper 	
										+'		<label class="fillBlank" style="float:left;">'
										+'			<div style="float:left;width:15%;line-height: 50px;">考生答案'+fill.options[i][j].optionName+'</div>'
										+'			<div style="float:left;width:80%;"><textarea id="'+fill.type+'_answer_'+i+'_option_'+j+'" name="'+fill.questionIDs[i]+'" optionid="'+fill.options[i][j].id+'"  class="fillBlankTextarea"  type="text"  rows="6" maxlength="200" disabled></textarea></div>'
										+'		</label>'

										
										+'		<div class="fillScoreSpecial" style="float:left;width:35%;padding-top: 20px;">'
										+'			<div class="scoreFill" style="padding-top: 3px;">'
										+'				<input  id="scoreFill_'+fill.type+'_'+i+'_'+j+'"  class="scoreInput"  onchange="scoreFillChange(this);"  value="'+ fill.thisFsDetail[i][j] +'"   type="number" oninput="if(value.length>4)value=value.slice(0,4)" readonly />'
										+'				<input type="button"  class="scoreButton" value="分"/>'
										+'			</div>'	
										+'			<input type="radio" name="rdo_'+fill.type+'_'+i+'_'+j+'" class=" rdolist rdolist_'+fill.type+'_'+i+'_'+j+'" checked="'+theOtherHand+'"/>'
										+'			<label class="'+theOtherHand+' rdobox_'+fill.type+'_'+i+'_'+j+'" >'
										+'				<b class="icon iconfont incorrect radiobox-content">&#xe69c;</b>'
										+'			</label>'											
										+'			<input type="radio" name="rdo_'+fill.type+'_'+i+'_'+j+'" class=" rdolist rdolist_'+fill.type+'_'+i+'_'+j+'" checked="'+isGetScore+'" />'
										+'			<label class="'+isGetScore+' rdobox_'+fill.type+'_'+i+'_'+j+'" >'
										+'				<b class="icon iconfont correct radiobox-content">&#xe69d;</b>'
										+'			</label>'										
										+'		</div>'
										
										+'		<label class="fillBlank">'
										+'			<div style="float:left;width:15%;line-height: 50px;">标准答案'+fill.options[i][j].optionName+'</div>'
										+'			<div style="float:left;width:80%;"><textarea id="'+fill.type+'_answer_'+i+'_option_'+j+'" name="'+fill.questionIDs[i]+'StandardAnswer"   class="fillBlankTextarea"  type="text"  rows="6" maxlength="200" disabled></textarea></div>'
										+'		</label>'
										+'		<br/><br/>'
									;
								}
								
								fill.paper = fill.paper 	
									+'	</div>'
									+'</li>'	
								;
									
								fill.answer = fill.answer	
									+'<li><a href="#qu_'+fill.type+'_'+i+'">'+(i+1)+'</a></li>'
								;
							}
							
							/*
							for( var i = 0 ; i < fill.quesNumber ; ++i ){原格式被推翻
								
								//准备填空的题干↓
								questionsArray = fill.questions[i].split("（");//fill.questions[0] = "填空，请注意（A）这是一个（B）为什么（C）这个（D）"
								//console.log(questionsArray);// ["填空，请注意", "A）这是一个", "B）为什么", "C）这个", "D）"]
								for(var n = 1 ; n < questionsArray.length ; ++n){
									questionsArray[n] = questionsArray[n].substring(2,questionsArray[n].length);
								}
								//console.log(questionsArray);//["填空，请注意", "这是一个", "为什么", "这个", ""]								
								//准备填空的题干↑
								
								fill.paper = fill.paper 
									+'<li id="qu_'+fill.type+'_'+i+'">'
									+'	<div class="test_content_nr_tt">'
									+'		<i>1</i><span>(10分)</span>'
									
									+'		<div class="scoreFill">'
									+'			<input  id="scoreFill_'+fill.type+'_'+i+'"  class="scoreInput"  onchange="scoreFillChange(this);"   value="0"   type="number" oninput="if(value.length>4)value=value.slice(0,4)"  />'
									+'			<input type="button"  class="scoreButton" value="分"/>'
									+'		</div>'									
									+'		<input type="radio" name="rdo_'+fill.type+'_'+i+'" class=" rdolist rdolist_'+fill.type+'_'+i+'" checked="unchecked"/>'
									+'		<label class="rdobox_'+fill.type+'_'+i+' unchecked" >'
									+'			<b class="icon iconfont incorrect radiobox-content">&#xe69c;</b>'
									+'		</label>'											
									+'		<input type="radio" name="rdo_'+fill.type+'_'+i+'" class=" rdolist rdolist_'+fill.type+'_'+i+'" checked="unchecked" />'
									+'		<label class="rdobox_'+fill.type+'_'+i+' unchecked"  >'
									+'			<b class="icon iconfont correct radiobox-content">&#xe69d;</b>'
									+'		</label>'									
									
								;			
									
									
								for( var j = 0 ; j < questionsArray.length -1 ; ++j ){	
									fill.paper = fill.paper 
										+'		<font>'+questionsArray[j]+'</font>'
										+'		<label class="blank '+fill.type+'_answer_'+i+'_option_'+j+'" >'
										+'			<font class="blankFont '+fill.type+'_answer_'+i+'_option_'+j+'">&nbsp;</font>'
										+'		</label>'
									;			
								}
								
								if(questionsArray.length > 1){
									fill.paper = fill.paper 
										+'		<font>'+questionsArray[questionsArray.length-1]+'</font>'
									;	
								}
	
								fill.paper = fill.paper 		
									+'	</div>'
									+'	<div class="test_content_nr_main">'
								;
										
								for( var j = 0 ; j < questionsArray.length -1 ; ++j ){
									fill.paper = fill.paper 	
										+'		<label class="fillBlank">'
										+'			<textarea id="'+fill.type+'_answer_'+i+'_option_'+j+'" name="'+fill.questionIDs[i]+'" optionid="'+fill.options[i][j].id+'"  class="fillBlankTextarea"  type="text"  rows="6" maxlength="200" disabled ></textarea>'
										+'		</label>'
										+'		<br/>'
									;
								}
								
								fill.paper = fill.paper 
									+'	</div>'
									+'</li>'	
								;
									
									
								fill.answer = fill.answer	
									+'<li><a href="#qu_'+fill.type+'_'+i+'">'+(i+1)+'</a></li>'
								;
							}*/	
							
							fill.paper = fill.paper 
								+'	</ul>'
								+'</div>'
							;
								
							fill.answer = fill.answer		
								+'	</ul>'
								+'</div>'	
							;
							
							$("#paper").append(fill.paper);
							
							$("#accordion").append(fill.answer);
							
							
						}
						
						
						if(modify.quesNumber){//渲染改错题
							modify.paper = modify.paper
								+'<div class="test_content">'
								+'	<div class="test_content_title">'
								+'		<h2>改错题</h2>'
								+'		<p>'
								+'			<span>共</span><i class="content_lit">'+modify.quesNumber+'</i><span>题，</span><span>合计</span><i class="content_fs">'+modify.totalFs+'</i><span>分</span>'
								+'		</p>'
								+'	</div>'
								+'</div>'
								+'<div class="test_content_nr">'
								+'	<ul>'								
							;	
							
							modify.answer = modify.answer
								+'<div class="rt_content">'
								+'	<div class="rt_content_tt link">'
								+'		<h2>改错题</h2>'
								+'		<p>'
								+'			<span>共</span><i class="content_lit">'+modify.quesNumber+'</i><span>题</span>'
								+'		</p>'
								+'	</div>'
								+'	<ul class="submenu answerSheet" style="display:;">'
							;	
							
							

							
							
							for( var i = 0 ; i < modify.quesNumber ; ++i ){
							
								var isGetScore  = "unchecked" ;//主观题通用-是否得分,得分存"checked"
								var theOtherHand = "checked";//上面变量的反值
								if(modify.thisFs[i] != 0){
									isGetScore = "checked" ;
									theOtherHand = "unchecked" ;
								}
								
								modify.paper = modify.paper 
									+'<li id="qu_'+modify.type+'_'+i+'">'
									+'	<div class="test_content_nr_tt">'
									+'		<i>'+(i+1)+'</i><span>('+modify.fs[i]+'分)</span>'
									+'		<font>'+modify.titles[i]+'</font>'
									
									+'		<div class="scoreFill">'
									+'			<input  id="scoreFill_'+modify.type+'_'+i+'"  class="scoreInput"  onchange="scoreFillChange(this);"  value="'+modify.thisFs[i]+'"   type="number" oninput="if(value.length>4)value=value.slice(0,4)" readonly />'
									+'			<input type="button"  class="scoreButton" value="分"/>'
									+'		</div>'									
									+'		<input type="radio" name="rdo_'+modify.type+'_'+i+'" class=" rdolist rdolist_'+modify.type+'_'+i+'" checked="'+theOtherHand+'"/>'
									+'		<label class="'+theOtherHand+' rdobox_'+modify.type+'_'+i+'" >'
									+'			<b class="icon iconfont incorrect radiobox-content">&#xe69c;</b>'
									+'		</label>'											
									+'		<input type="radio" name="rdo_'+modify.type+'_'+i+'" class=" rdolist rdolist_'+modify.type+'_'+i+'" checked="'+isGetScore+'" />'
									+'		<label class="'+isGetScore+' rdobox_'+modify.type+'_'+i+'"  >'
									+'			<b class="icon iconfont correct radiobox-content">&#xe69d;</b>'
									+'		</label>'
									
									+'		<textarea  id="nicEditorQuestion_'+modify.type+'_'+i+'"  style="width: 100%;" >'+modify.questions[i]+'</textarea>'
									+'	</div>'
									+'	<div class="standardAnswer"  style="padding-left: 60px;">'
									+'		考生答案：'
									+'	</div>'
									+'	<div class="test_content_nr_main">'
									+'		<textarea id="nicEditorStudentAnswer_'+modify.type+'_answer_'+i+'" name="'+modify.questionIDs[i]+'" class="discussionTextarea"  optionid="'+modify.options[i][0].id+'"  type="text"  rows="12" maxlength="2000" disabled ></textarea>'
									+'	</div>'
									+'	<div class="standardAnswer"  style="padding-left: 60px;">'
									+'		标准答案：'
									+'	</div>'
									+'	<div class="test_content_nr_main">'
									+'		<textarea id="nicEditorStandardAnswer_'+modify.type+'_'+i+'"  name="standard'+modify.questionIDs[i]+'" class="discussionTextarea"   type="text"  rows="12" maxlength="2000" disabled >'+modify.standardAnswer[i]+'</textarea>'
									+'	</div>'
									+'</li>'	
								;
									
								modify.answer = modify.answer	
									+'<li><a href="#qu_'+modify.type+'_'+i+'">'+(i+1)+'</a></li>'
								;
							}
							
							modify.paper = modify.paper 
								+'	</ul>'
								+'</div>'
							;
								
							modify.answer = modify.answer		
								+'	</ul>'
								+'</div>'	
							;
							
							$("#paper").append(modify.paper);
							
							$("#accordion").append(modify.answer);
							
							
						}						
						

						if(discussion.quesNumber){//渲染解答题
							discussion.paper = discussion.paper
								+'<div class="test_content">'
								+'	<div class="test_content_title">'
								+'		<h2>解答题</h2>'
								+'		<p>'
								+'			<span>共</span><i class="content_lit">'+discussion.quesNumber+'</i><span>题，</span><span>合计</span><i class="content_fs">'+discussion.totalFs+'</i><span>分</span>'
								+'		</p>'
								+'	</div>'
								+'</div>'
								+'<div class="test_content_nr">'
								+'	<ul>'								
							;	
							
							discussion.answer = discussion.answer
								+'<div class="rt_content">'
								+'	<div class="rt_content_tt link">'
								+'		<h2>解答题</h2>'
								+'		<p>'
								+'			<span>共</span><i class="content_lit">'+discussion.quesNumber+'</i><span>题</span>'
								+'		</p>'
								+'	</div>'
								+'	<ul class="submenu answerSheet" style="display:;">'
							;	
							
							

							
							
							for( var i = 0 ; i < discussion.quesNumber ; ++i ){
								
								var isGetScore  = "unchecked" ;//主观题通用-是否得分,得分存"checked"
								var theOtherHand = "checked";//上面变量的反值
								if(discussion.thisFs[i] != 0){
									isGetScore = "checked" ;
									theOtherHand = "unchecked" ;
								}
								
								discussion.paper = discussion.paper 
									+'<li id="qu_'+discussion.type+'_'+i+'">'
									+'	<div class="test_content_nr_tt">'
									+'		<i>'+(i+1)+'</i><span>('+discussion.fs[i]+'分)</span>'
									+'		<font>'+discussion.titles[i]+'</font>'
									
									+'		<div class="scoreFill">'
									+'			<input  id="scoreFill_'+discussion.type+'_'+i+'"  class="scoreInput"  onchange="scoreFillChange(this);"  value="'+discussion.thisFs[i]+'"   type="number" oninput="if(value.length>4)value=value.slice(0,4)"  readonly />'
									+'			<input type="button"  class="scoreButton" value="分"/>'
									+'		</div>'									
									+'		<input type="radio" name="rdo_'+discussion.type+'_'+i+'" class=" rdolist rdolist_'+discussion.type+'_'+i+'" checked="'+theOtherHand+'"/>'
									+'		<label class="'+theOtherHand+' rdobox_'+discussion.type+'_'+i+'" >'
									+'			<b class="icon iconfont incorrect radiobox-content">&#xe69c;</b>'
									+'		</label>'											
									+'		<input type="radio" name="rdo_'+discussion.type+'_'+i+'" class=" rdolist rdolist_'+discussion.type+'_'+i+'" checked="'+isGetScore+'" />'
									+'		<label class="'+isGetScore+' rdobox_'+discussion.type+'_'+i+'"  >'
									+'			<b class="icon iconfont correct radiobox-content">&#xe69d;</b>'
									+'		</label>'
									
									+'		<textarea  id="nicEditorQuestion_'+discussion.type+'_'+i+'"  style="width: 100%;" >'+discussion.questions[i]+'</textarea>'
									+'	</div>'
									+'	<div class="standardAnswer"  style="padding-left: 60px;">'
									+'		考生答案：'
									+'	</div>'
									+'	<div class="test_content_nr_main">'
									+'		<textarea id="nicEditorStudentAnswer_'+discussion.type+'_answer_'+i+'" name="'+discussion.questionIDs[i]+'" class="discussionTextarea"  optionid="'+discussion.options[i][0].id+'"  type="text"  rows="12" maxlength="2000" disabled ></textarea>'
									+'	</div>'
									+'	<div class="standardAnswer"  style="padding-left: 60px;">'
									+'		标准答案：'
									+'	</div>'
									+'	<div class="test_content_nr_main">'
									+'		<textarea id="nicEditorStandardAnswer_'+discussion.type+'_'+i+'" name="standard'+discussion.questionIDs[i]+'" class="discussionTextarea"   type="text"  rows="12" maxlength="2000" disabled >'+discussion.standardAnswer[i]+'</textarea>'
									+'	</div>'
									+'</li>'	
								;
									
								discussion.answer = discussion.answer	
									+'<li><a href="#qu_'+discussion.type+'_'+i+'">'+(i+1)+'</a></li>'
								;
							}
							
							discussion.paper = discussion.paper 
								+'	</ul>'
								+'</div>'
							;
								
							discussion.answer = discussion.answer		
								+'	</ul>'
								+'</div>'	
							;
							
							$("#paper").append(discussion.paper);
							
							$("#accordion").append(discussion.answer);
							
							
						}
						
						
						if(synthesis.quesNumber){//渲染综合应用题(综合应用题和解答题使用同一套策略)
							synthesis.paper = synthesis.paper
								+'<div class="test_content">'
								+'	<div class="test_content_title">'
								+'		<h2>综合应用题</h2>'
								+'		<p>'
								+'			<span>共</span><i class="content_lit">'+synthesis.quesNumber+'</i><span>题，</span><span>合计</span><i class="content_fs">'+synthesis.totalFs+'</i><span>分</span>'
								+'		</p>'
								+'	</div>'
								+'</div>'
								+'<div class="test_content_nr">'
								+'	<ul>'								
							;	
							
							synthesis.answer = synthesis.answer
								+'<div class="rt_content">'
								+'	<div class="rt_content_tt link">'
								+'		<h2>综合应用题</h2>'
								+'		<p>'
								+'			<span>共</span><i class="content_lit">'+synthesis.quesNumber+'</i><span>题</span>'
								+'		</p>'
								+'	</div>'
								+'	<ul class="submenu answerSheet" style="display:;">'
							;	
							
							

							
							for( var i = 0 ; i < synthesis.quesNumber ; ++i ){
							
							
								var isGetScore  = "unchecked" ;//主观题通用-是否得分,得分存"checked"
								var theOtherHand = "checked";//上面变量的反值
								if(synthesis.thisFs[i] != 0){
									isGetScore = "checked" ;
									theOtherHand = "unchecked" ;
								}
								
								if(synthesis.options[i][0]){
									synthesis.paper = synthesis.paper 
										+'<li id="qu_'+synthesis.type+'_'+i+'">'
										+'	<div class="test_content_nr_tt">'
										+'		<i>'+(i+1)+'</i><span>('+synthesis.fs[i]+'分)</span>'
										+'		<font>'+synthesis.titles[i]+'</font>'
										
										+'		<div class="scoreFill">'
										+'			<input  id="scoreFill_'+synthesis.type+'_'+i+'" class="scoreInput" value="'+synthesis.thisFs[i]+'" onchange="scoreFillChange(this);"   type="number" oninput="if(value.length>4)value=value.slice(0,4)" />'
										+'			<input type="button"  class="scoreButton" value="分"/>'
										+'		</div>'
										+'		<input type="radio" name="rdo_'+synthesis.type+'_'+i+'" class=" rdolist rdolist_'+synthesis.type+'_'+i+'" checked="'+theOtherHand+'"/>'
										+'		<label class="'+theOtherHand+' rdobox_'+synthesis.type+'_'+i+'" >'
										+'			<b class="icon iconfont incorrect radiobox-content">&#xe69c;</b>'
										+'		</label>'											
										+'		<input type="radio" name="rdo_'+synthesis.type+'_'+i+'" class=" rdolist rdolist_'+synthesis.type+'_'+i+'" checked="'+isGetScore+'" />'
										+'		<label class="'+isGetScore+' rdobox_'+synthesis.type+'_'+i+' "  >'
										+'			<b class="icon iconfont correct radiobox-content">&#xe69d;</b>'
										+'		</label>'										
										
										+'		<textarea  id="nicEditorQuestion_'+synthesis.type+'_'+i+'"  style="width: 100%;" >'+synthesis.questions[i]+'</textarea>'
										
										+'	</div>'
										+'	<div class="standardAnswer"  style="padding-left: 60px;">'
										+'		考生答案：'
										+'	</div>'
										+'	<div class="test_content_nr_main">'
										+'		<textarea id="nicEditorStudentAnswer_'+synthesis.type+'_answer_'+i+'" name="'+synthesis.questionIDs[i]+'" class="discussionTextarea"  optionid="'+synthesis.options[i][0].id+'"   type="text"  rows="12" maxlength="2000" disabled ></textarea>'
										+'	</div>'
										+'	<div class="standardAnswer" style="padding-left: 60px;">'
										+'		标准答案：'
										+'	</div>'
										+'	<div class="test_content_nr_main">'
										+'		<textarea  id="nicEditorStandardAnswer_'+synthesis.type+'_'+i+'"  name="standard'+synthesis.questionIDs[i]+'" class="discussionTextarea"   type="text"  rows="12" maxlength="2000" disabled >'+synthesis.standardAnswer[i]+'</textarea>'
										+'	</div>'
										+'</li>'	
									;									
								}else{
									console.log("WARNING:synthesis.options["+i+"][0]缺失，无法绘制试题");
								}

									
								synthesis.answer = synthesis.answer	
									+'<li><a href="#qu_'+synthesis.type+'_'+i+'">'+(i+1)+'</a></li>'
								;
							}
							
							synthesis.paper = synthesis.paper 
								+'	</ul>'
								+'</div>'
							;
								
							synthesis.answer = synthesis.answer		
								+'	</ul>'
								+'</div>'	
							;
							
							$("#paper").append(synthesis.paper);
							
							$("#accordion").append(synthesis.answer);
							
							
						}
						
						
					}else{
						alert("试卷信息异常，请联系管理员");
						window.history.go(-1);//返回上一页
					}
					
		        }
		    });
			
		    
		    //最后一步渲染试卷答案
			setTimeout(function(){
				

				showQuestion();
				
				// 答题卡展开样式↓ 
				var Accordion = function(el, multiple) {
					this.el = el || {};
					this.multiple = multiple || false;
			
					// Variables privadas
					var links = this.el.find('.link');
					// Evento
					links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown);
				}
			
				Accordion.prototype.dropdown = function(e) {
					var $el = e.data.el;
						$this = $(this),
						$next = $this.next();
			
					$next.slideToggle();
					$this.parent().toggleClass('open');
			
					if (!e.data.multiple) {
						$el.find('.submenu').not($next).slideUp().parent().removeClass('open');
					};
				}	
			
				var accordion = new Accordion($('#accordion'), false);		
				
				//答题卡展开样式↑ 

				
			},1000);
		    
		    


		});
		
		bkLib.onDomLoaded(function() {
			
			setTimeout(function(){
				
				if(single.quesNumber){
					for( var i = 0 ; i < single.quesNumber ; ++i ){
						new nicEditor().panelInstance("nicEditorQuestion_"+single.type+"_"+i  ,{hasPanel : false} );
						//$(".rdolist_"+single.type+"_"+i).labelauty("rdolist_"+single.type+"_"+i, "rdobox_"+single.type+"_"+i , "_"+single.type+"_"+i);//选择题分数不可改
					}
				}
				
 				if(multiple.quesNumber){
					for( var i = 0 ; i < multiple.quesNumber ; ++i ){
						new nicEditor().panelInstance("nicEditorQuestion_"+multiple.type+"_"+i ,{hasPanel : false});
						//$(".rdolist_"+multiple.type+"_"+i).labelauty("rdolist_"+multiple.type+"_"+i, "rdobox_"+multiple.type+"_"+i , "_"+multiple.type+"_"+i);
					}
				} 
 				
 				if(judgment.quesNumber){
					for( var i = 0 ; i < judgment.quesNumber ; ++i ){
						new nicEditor().panelInstance("nicEditorQuestion_"+judgment.type+"_"+i ,{hasPanel : false});
						//$(".rdolist_"+judgment.type+"_"+i).labelauty("rdolist_"+judgment.type+"_"+i, "rdobox_"+judgment.type+"_"+i , "_"+judgment.type+"_"+i);//判断题分数不可改
					}
				}

 				if(fill.quesNumber){				
					for( var i = 0 ; i < fill.quesNumber ; ++i ){
						new nicEditor().panelInstance("nicEditorQuestion_"+fill.type+"_"+i ,{hasPanel : false});
						//$(".rdolist_"+fill.type+"_"+i).labelauty("rdolist_"+fill.type+"_"+i, "rdobox_"+fill.type+"_"+i , "_"+fill.type+"_"+i);//填空题题干处判断对错功能屏蔽，用每个小空的判断对错替代
						//for( var j = 0 ; j < fill.options[i].length  ; ++j ){
						//	$(".rdolist_"+fill.type+"_"+i+"_"+j).labelauty("rdolist_"+fill.type+"_"+i+"_"+j, "rdobox_"+fill.type+"_"+i+"_"+j , "_"+fill.type+"_"+i+"_"+j);
						//}						
					}
				}
				
				if(modify.quesNumber){
					for( var i = 0 ; i < modify.quesNumber ; ++i ){
						new nicEditor().panelInstance("nicEditorQuestion_"+modify.type+"_"+i ,{hasPanel : false});
						new nicEditor().panelInstance("nicEditorStandardAnswer_"+modify.type+"_"+i ,{hasPanel : false});
						new nicEditor().panelInstance("nicEditorStudentAnswer_"+modify.type+"_answer_"+i ,{hasPanel : false});
						//$(".rdolist_"+modify.type+"_"+i).labelauty("rdolist_"+modify.type+"_"+i, "rdobox_"+modify.type+"_"+i , "_"+modify.type+"_"+i);
					}
				}
				
 				if(discussion.quesNumber){
					for( var i = 0 ; i < discussion.quesNumber ; ++i ){
						new nicEditor().panelInstance("nicEditorQuestion_"+discussion.type+"_"+i ,{hasPanel : false});
						new nicEditor().panelInstance("nicEditorStandardAnswer_"+discussion.type+"_"+i ,{hasPanel : false});
						new nicEditor().panelInstance("nicEditorStudentAnswer_"+discussion.type+"_answer_"+i ,{hasPanel : false});
						
						//$(".rdolist_"+discussion.type+"_"+i).labelauty("rdolist_"+discussion.type+"_"+i, "rdobox_"+discussion.type+"_"+i , "_"+discussion.type+"_"+i);
					}
				}
 				
 				if(synthesis.quesNumber){
					for( var i = 0 ; i < synthesis.quesNumber ; ++i ){
						if(synthesis.options[i][0]){
							new nicEditor().panelInstance("nicEditorQuestion_"+synthesis.type+"_"+i ,{hasPanel : false});
							new nicEditor().panelInstance("nicEditorStandardAnswer_"+synthesis.type+"_"+i ,{hasPanel : false});
							new nicEditor().panelInstance("nicEditorStudentAnswer_"+synthesis.type+"_answer_"+i ,{hasPanel : false});
							//$(".rdolist_"+synthesis.type+"_"+i).labelauty("rdolist_"+synthesis.type+"_"+i, "rdobox_"+synthesis.type+"_"+i , "_"+synthesis.type+"_"+i);
						}else{
							console.log("WARNING:synthesis.options["+i+"][0]缺失,无法转码试题");
						}
					}
				}
				
				totalScore = 0.0 ;
				$(".scoreInput").each(function(){
					totalScore += parseFloat($(this).val()) ;
				});
				console.log(totalScore);
				$(".alt-1").html("分数"+Math.floor(totalScore * 100) / 100);
				$("#testScore").html("分数："+Math.floor(totalScore * 100) / 100);
 				
			},1500);
		});
		
		
		function scoreFillChange(that){//改分事件	
			var type = $(that).attr("id").split("_")[1];
            var index = $(that).attr("id").split("_")[2];
			
			if(type==2){//multiple多选题
				if($(that).val()==""||$(that).val()<0||$(that).val()>multiple.fs[index]){
					$(that).val("0");
				}
				multiple.thisFs[index] = $(that).val() ;
			}else if(type==3){//fill填空题
				if($(that).val()==""||$(that).val()<0||$(that).val()>fill.fs[index]){
					$(that).val("0");
				}

				//fill.thisFs[index] = $(that).val() ;
				var detail = $(that).attr("id").split("_")[3];
            	fill.thisFsDetail[index][detail] = $(that).val() ;//先假定修改成功
				
				//以下是得分校验
				var thisFsTemp = 0 ; //改分事件时，该填空题所有空的当前总分
				for(var j = 0 ; j < fill.thisFsDetail[index].length ; ++j){
					thisFsTemp += parseFloat(fill.thisFsDetail[index][j]) ;
				}
				if(thisFsTemp>fill.fs[index]){//假定不成立，修改失败，打回0分
					$(that).val("0");
					fill.thisFsDetail[index][detail] = 0 ;
					
					fill.thisFs[index] = 0 ;
					for(var j = 0 ; j < fill.thisFsDetail[index].length ; ++j){//修改失败导致某空分变为0，须重新计算本填空题总分
						fill.thisFs[index] += parseFloat(fill.thisFsDetail[index][j]) ;
					}
				}else{//假定成立，修改成功，更新本填空题总分
					fill.thisFs[index] = thisFsTemp ;
				}
				
				//console.log("本填空题的总分为："+fill.thisFs[index]);
				//console.log("每个空的分值为：");
				//console.log(fill.thisFsDetail[index]);
				
			}else if(type==6){//modify改错题
				if($(that).val()==""||$(that).val()<0||$(that).val()>modify.fs[index]){
					$(that).val("0");
				}
				modify.thisFs[index] = $(that).val() ;
			}else if(type==5){//discussion解答题
				if($(that).val()==""||$(that).val()<0||$(that).val()>discussion.fs[index]){
					$(that).val("0");
				}
				discussion.thisFs[index] = $(that).val() ;
			}else if(type==7){//synthesis综合应用题
				if($(that).val()==""||$(that).val()<0||$(that).val()>synthesis.fs[index]){
					$(that).val("0");
				}
				synthesis.thisFs[index] = $(that).val() ;
			}
			
			totalScore = 0.0 ;
			$(".scoreInput").each(function(){
				totalScore += parseFloat($(this).val()) ;
			});
			console.log(totalScore);
			$(".alt-1").html("分数"+Math.floor(totalScore * 100) / 100);
		}
		
		//填空题定制改分事件，存储scoreDetail
		
		function submitPaper(that){//交卷事件
	    	if(confirm("是否确认提交？该操作无法撤回")){
	    		
	    		//把数组转成JSON对象
	    		 
	    		var arr=new Array();
	    		var jsonSubmit ;//转成json格式作为最终提交的结果


 				for(var i=0;i<single.quesNumber;i++){
					var singleObj = new Object();
					singleObj.id = single.answerListId[i] ;
					singleObj.score = single.thisFs[i];
					arr.push(singleObj);
				} 
	    		
 				for(var i=0;i<multiple.quesNumber;i++){
					var multipleObj = new Object();
					multipleObj.id = multiple.answerListId[i] ;
					multipleObj.score = multiple.thisFs[i];
					arr.push(multipleObj);
				} 
 				
 				for(var i=0;i<judgment.quesNumber;i++){
					var judgmentObj = new Object();
					judgmentObj.id = judgment.answerListId[i] ;
					judgmentObj.score = judgment.thisFs[i];
					arr.push(judgmentObj);
				} 
 				
 				for(var i=0;i<fill.quesNumber;i++){
					var fillObj = new Object();
					if(fill.answerListId[i]){//考生作答了，产生了answerList
						fillObj.id = fill.answerListId[i] ;
						fillObj.score = fill.thisFs[i];
						
						var scoreDetail = "" ;
						for(var j = 0 ; j < fill.thisFsDetail[i].length ; ++j){//汇总填空题每个空的分值
							scoreDetail += fill.thisFsDetail[i][j] ;
							scoreDetail += "," ;
						}
						if(fill.thisFsDetail[i].length > 0 ){
							scoreDetail = scoreDetail.substring(0,scoreDetail.length-1);
						}
						fillObj.scoreDetail = scoreDetail ;
						//console.log("追加填空题每空得分逻辑");
						//console.log(fillObj);
						arr.push(fillObj);					
					}
				} 
 				
				for(var i=0;i<modify.quesNumber;i++){
					var modifyObj = new Object();
					modifyObj.id = modify.answerListId[i] ;
					modifyObj.score = modify.thisFs[i];
					arr.push(modifyObj);
				} 
				
 				for(var i=0;i<discussion.quesNumber;i++){
					var discussionObj = new Object();
					discussionObj.id = discussion.answerListId[i] ;
					discussionObj.score = discussion.thisFs[i];
					arr.push(discussionObj);
				} 
 				
 				for(var i=0;i<synthesis.quesNumber;i++){
					var synthesisObj = new Object();
					synthesisObj.id = synthesis.answerListId[i] ;
					synthesisObj.score = synthesis.thisFs[i];
					arr.push(synthesisObj);
				} 

 				//console.log(arr);
 				jsonSubmit = JSON.stringify(arr) ;
 				//console.log(jsonSubmit);
 				
 				$.ajax({
			        type: "POST",
			        url: "/jysjxssublist/bathUpdate", 
			        data: jsonSubmit,
			        //dataType: "json",
			        contentType: "application/json",
			        success: function (result) {
			        	console.log(result);
			        	if(result.code == 0	){
			        		alert("提交成功");
			        		$("input").attr("disabled",true);
			        		$("#printButton").attr("disabled",false);
			        		$(that).val("评卷已提交");
 			        		$(that).css({
		        			  "width":"120px"
		        			}); 
 			        		
 			        		$(".radiobox-content").click(function(){//取消判断对错的事件
 			        			return false ;
 			        		});
 			        		
 			        		
 			        		
 			 				$.ajax({
 						        type: "POST",
 						        url: "/jysjxs/update", 
 						        data: JSON.stringify({
 						        	'id':xsId ,
 						        	'state':1 ,
 						        	'sjScore':totalScore,
 						        	'pjr':pjrId
 						        }),
 						        //dataType: "json",
 						        contentType: "application/json",
 						        success: function (result) {
 						        	console.log(result);
 						        }
 						    });

			        	}else{
			        		alert("提交信息失败，请联系管理员");
			        	}
			        }
			    }); 
 				
 				

	    	}else{
	    		return false;
	    	}
	    }
		/* 后台部分↑ */
		</script>
	</head>

	<body>
		<div class="main">
		
			<!-- 进度条 -->
			<div class="box">
				<div class="tbox" style="text-align:center;">
			        <div class="tiao" style='font-size:18px; line-height:48px;'></div>
			        <font style='font-size:18px; line-height:48px;'>试题加载中，请耐心等待</font>
			    </div>
		    </div>
			<!--nr start-->
			<div class="test_main" style="visibility:hidden;">
				<!-- 答题区开始 -->
				<div class="nr_left">
					<div class="test" id="test">
						<form id="paper" action="" method="post">
							<div class="test_title">

								
								<font><input id="printButton" type="button" onClick="printClick();"  value="打印" /></font>
							</div>
							
								<div class="main_content">
									<div class="main_content_title" style="text-align:left;padding-left:200px;">
										<font id="testName">基础考试</font>
										<font id="testScore" style="float:right;padding-right:50px;color:red">分数：</font>
									</div>
								</div>
							

							
						</form>
					</div>

				</div>
				<!-- 答题区结束 -->
				
				<!-- 答题卡开始 -->
				
				<div class="nr_right">
					<div class="nr_rt_main">
						<div class="rt_nr1 accordion"  id="accordion">
							<div class="rt_nr1_title">
								<h1>
									<i class="icon iconfont" style="font-size:20px;">&#xe693;</i>打分卡
								</h1>
								<p class="test_time">
									<i class="icon iconfont"  style="font-size:23px;padding-top: 2px;">&#xe6db;</i><b class="alt-1">分数</b>
								</p>
							</div>
						</div>

					</div>
				</div>
				
				<!-- 答题卡结束 -->
				
			</div>
			

		    
			<!--nr end-->
			<div class="foot"></div>
		</div>

		
		
		<!--时间js-->
		<script type="text/javascript" src="${request.contextPath}/statics/js/modules/test/jquery.countdown.js"></script>
		<script>
			/* 进度条相关↓ */
			var i=0;
		    /*add——创建tbx下的div加文字和变宽度的方法*/
		    function add(i){
			    var tbox =$(".tbox");
	            var tiao =$(".tiao");
				tiao.css("width",i+"%").html(i+"%");
			}	
	
		    /*创建方法（i++循环起来）*/
			function xh(){
				if(i>100){
					//$(".test_main").show();
					$(".test_main").css("visibility","visible");
					$(".box").hide();
					return;
				}
				if(i<=100){
					setTimeout("xh()",20)
					add(i);
			   	 	i++;
				}
			}		
			/* 进度条相关↑ */
			
			window.jQuery(function($) {

				//启用进度条
				xh();

			});

		</script>

	</body>

</html>